const router = require('koa-router')()
const validate = require('koa2-validation')
const note = require('../controllers/note')

router.prefix('/notes')

router.post('/', validate(note.v.postNote), note.postNotes)

router.get('/', note.getNotes)

module.exports = router
